package com.ruoyi.project.learn.sscl.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 实时材料对象 dj_real_time_material
 * 
 * @author ruoyi
 * @date 2025-09-17
 */
public class DjRealTimeMaterial extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 资料ID */
    private Long id;

    /** 资料标题 */
    @Excel(name = "资料标题")
    private String title;

    /** 来源：如宜兴市教育局、马克思学院等 */
    @Excel(name = "来源：如宜兴市教育局、马克思学院等")
    private String source;

    /** 资料内容URL */
    @Excel(name = "资料内容URL")
    private String contentUrl;

    /** 内容类型：text-文本，pdf-PDF，html-网页 */
    @Excel(name = "内容类型：text-文本，pdf-PDF，html-网页")
    private String contentType;

    /** 发布时间 */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date publishTime;

    /** 阅读次数 */
    @Excel(name = "阅读次数")
    private Long readCount;

    /** 状态：1-启用，0-禁用 */
    @Excel(name = "状态：1-启用，0-禁用")
    private Integer status;

    /** 分类 */
    @Excel(name = "分类")
    private String category;

    /** 内容描述 */
    @Excel(name = "内容描述")
    private String info;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }

    public void setSource(String source) 
    {
        this.source = source;
    }

    public String getSource() 
    {
        return source;
    }

    public void setContentUrl(String contentUrl) 
    {
        this.contentUrl = contentUrl;
    }

    public String getContentUrl() 
    {
        return contentUrl;
    }

    public void setContentType(String contentType) 
    {
        this.contentType = contentType;
    }

    public String getContentType() 
    {
        return contentType;
    }

    public void setPublishTime(Date publishTime) 
    {
        this.publishTime = publishTime;
    }

    public Date getPublishTime() 
    {
        return publishTime;
    }

    public void setReadCount(Long readCount) 
    {
        this.readCount = readCount;
    }

    public Long getReadCount() 
    {
        return readCount;
    }

    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }

    public void setCategory(String category) 
    {
        this.category = category;
    }

    public String getCategory() 
    {
        return category;
    }

    public void setInfo(String info) 
    {
        this.info = info;
    }

    public String getInfo() 
    {
        return info;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("source", getSource())
            .append("contentUrl", getContentUrl())
            .append("contentType", getContentType())
            .append("publishTime", getPublishTime())
            .append("readCount", getReadCount())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("category", getCategory())
            .append("info", getInfo())
            .toString();
    }
}
